package com.xhwl.centiotdata.service.cent;


import com.xhwl.common.dto.cent.alarm.haiwei1800.AlarmContent;
import com.xhwl.common.dto.cent.iotdata.vehicleschedule.VehicleScheduleRequestsDTO;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.alarm.AlarmLog;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;

/**
 * @Description:
 * @Copyright: Copyright (c) 2021  ALL RIGHTS RESERVED.
 * @Company: 深圳市兴海物联科技有限公司
 * @Author: gyc
 * @CreateDate: 2021/10/2 10:28
 * @UpdateDate: 2021/10/2 10:28
 * @UpdateRemark: init
 * @Version: 1.0
 */
@FeignClient(value = "cent-alarm")
public interface ICentAlarmService {

    /**
     * 推送iot的环境数据
     * @param iotEnvironmentReceive
     * @return
     */
    @RequestLine("POST /alarm-service/alarm-receive/iot-environment-receive")
    ResultJson iotEnvironmentReceive(@Param("iotEnvironmentReceive") String iotEnvironmentReceive);

    @RequestLine("POST /alarm-service/log-insert")
    ResultJson insert(@Param("alarmLog") AlarmLog alarmLog);

    /**
     * 推送iot的地磁状态变更数据
     */
    @RequestLine("POST /alarm-service/vehicle/geomagnetic-event")
    ResultJson vehicleWagonBalanceEvent(@Param("requestsDTO") VehicleScheduleRequestsDTO requestsDTO);
}
